package com.polaris.live.viewmodel

import androidx.lifecycle.MutableLiveData
import com.polaris.live.common.mvvm.viewmodel.BaseViewModel
import com.polaris.live.common.network.request
import com.polaris.live.common.network.state.ResultState
import com.polaris.live.net.userService
import com.polaris.live.resp.back_resp.UserMedalAllResp

/**
 * HonorViewModel
 *
 * @author Created by 半仙 on 2024/4/20/020 16:00
 */
class HonorViewModel : BaseViewModel() {

    val userMedalsLiveData = MutableLiveData<ResultState<UserMedalAllResp>>()
    fun getHonor(userId: Long) {
        request({ userService.userMedals(userId) }, userMedalsLiveData)
    }
}